package com.freesky.biz.psbc.service;

import com.freesky.biz.psbc.domain.TPsbcParity;
import com.freesky.biz.psbc.domain.TPsbcParityItem;

import java.util.List;

/**
 * 业务配置 服务层
 *
 * @author freesky
 */
public interface IPsbcParityService {

    public TPsbcParity get(String id);

    public TPsbcParity getByName(String name);

    public List<TPsbcParity> findList(TPsbcParity entity);

    public int insert(TPsbcParity entity);

    public int update(TPsbcParity entity);

    /**
     * 批量删除参数信息
     *
     * @param ids 需要删除的参数ID
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    //规则
    public int addParityItem(TPsbcParityItem psbcParityItem);

    public int updateParityItem(TPsbcParityItem psbcParityItem);

    public TPsbcParityItem getParityItemById( String id);

    public List<TPsbcParityItem> getParityItemByParityId(String parityId);

    public int deleteParityItemById(String id);


}
